home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / toadnt11.zip / TOADNT.DOC < prev   
Text File  |  1991-08-27  |  2KB  |  69 lines

  1. Toad Hall's NETTIME v1.1            27 August 1991
  2.  
  3. Usage:  NETTIME d:
  4.   where "d:" is a network drive on a remote file server.
  5.  
  6. NETTIME then sets your local system to the server's system time.
  7.  
  8. Background:
  9.  
  10. A local BBS SYSOP needed to set his local system time to that of
  11. a remote network server (to insure they were both "reading off
  12. the same clock", so to speak).
  13.  
  14. It turns out that his network software does NOT provide neat DOS
  15. function calls to query the network (or computers on the
  16. network) for their system time.
  17.  
  18. So ... a workaround was in order.
  19.  
  20. It turns out that (as with most networks) that the local system
  21. is able to "see" network files (via SHARE and NETBIOS) on a
  22. separate (logical) drive.  For example, that server might
  23. provide a "F:" drive to our PC (even though no such drive is
  24. really partitioned on our local hard disk).
  25.  
  26. With a little testing, we determined that a file created on that
  27. remote drive would be given the server's system date/time.
  28.  
  29. That meant we could (1) create a temporary file on the file
  30. server (drive F:), read that file's date/time, and use THAT
  31. date/time (the file server's, actually) to reset our own local
  32. system date/time.
  33.  
  34. Then, to be neat, we delete that remote system's temporary file.
  35.  
  36. If something goes wrong between the creation and the deletion,
  37. you might end up with wee little bogus files on the file
  38. server's home directory.  They'll be easy to spot:  they all
  39. have numeric names (e.g., 10012345), no file type, and 0 file
  40. size.  Delete them at will.
  41.  
  42.  
  43. Copyright and Licensing Restrictions:
  44.  
  45.   Copyright (c) 1991 David P Kirschbaum  All Rights Reserved
  46.  
  47. Any potentially commercial enterprises should contact the author
  48. for nonexclusive licensing.
  49.  
  50. And of course, I disclaim any responsibility for anything (good
  51. or bad) this program does or fails to do (to include the breaking
  52. up of the USSR).
  53.  
  54. Other than that, you can use this utility for anything you wish ..
  55. so long as you don't sell it, steal it, or remove my credits and
  56. copyright notice.
  57.  
  58. David Kirschbaum
  59. Toad Hall
  60. kirsch@sesi.com
  61.  
  62. 7573 Jennings Lane
  63. Fayetteville NC  28303
  64. (919) 868-3471
  65.  
  66. v1.1    26 Aug 91:  Misunderstood how to fiddle a file's date
  67.     to get a DOS date (adding only 80).  Turns out you must
  68.     add 1980!  Did 'n' did.
  69.